################################################################################
# Automatically-generated file. Do not edit!
################################################################################

SHELL := ${ComSpec}

-include ../makefile.init

RM := clean

# All of the sources participating in the build are defined here
-include sources.mk
-include system/uCOS-III/TLS/CCES/subdir.mk
-include system/uCOS-III/Source/subdir.mk
-include system/uCOS-III/Ports/ARM-Cortex-A5/subdir.mk
-include system/uCOS-III/GeneratedSources/subdir.mk
-include system/uCOS-III/AppSources/subdir.mk
-include system/uC-USB/GeneratedSources/subdir.mk
-include system/uC-USB/Device/Source/subdir.mk
-include system/uC-USB/Device/Ports/Arm/Drivers/ADI/BSP/subdir.mk
-include system/uC-USB/Device/Ports/Arm/Drivers/ADI/subdir.mk
-include system/uC-USB/Device/Ports/Arm/Device/subdir.mk
-include system/uC-USB/Device/OS/subdir.mk
-include system/uC-USB/Device/Class/Vendor/subdir.mk
-include system/uC-USB/Device/App/uCOS-III/subdir.mk
-include system/uC-USB/Device/App/uCOS-II/subdir.mk
-include system/uC-USB/Device/App/subdir.mk
-include system/uC-LIB/Source/subdir.mk
-include system/uC-Common/AppSources/subdir.mk
-include system/uC-CPU/Source/subdir.mk
-include system/uC-CPU/Ports/ARM-Cortex-A5/CCES/subdir.mk
-include system/services/gpio/subdir.mk
-include system/mcapi/GeneratedSources/subdir.mk
-include system/drivers/spi/subdir.mk
-include system/subdir.mk
-include src/subdir.mk
-include bsp/subdir.mk
-include subdir.mk
-include objects.mk

ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif

-include ../makefile.defs

# Add inputs and outputs from these tool invocations to the build variables 
EXECUTABLES += \
sc58x_boot_core0 \

OBJS := $(SRC_OBJS)
# Quote makefile variable : OBJS 
OBJS := $(subst \ ,@, $(OBJS))
OBJS := $(foreach var, $(OBJS), "$(subst @, ,$(var))")
# Quote makefile variable : C_DEPS 
C_DEPS := $(subst \ ,@, $(C_DEPS))
C_DEPS := $(foreach var, $(C_DEPS), "$(subst @, ,$(var))")

# All Target
all: sc58x_boot_core0.ldr

# Tool invocations
sc58x_boot_core0.ldr: $(EXECUTABLES) $(SRC_OBJS)
	@echo 'Building target: $@'
	@echo 'Invoking: CrossCore ARM Loader'
	elfloader.exe -proc ADSP-SC589 -si-revision any -b spimaster -f binary -width 8 -bcode 0x01 -init "C:\Analog Devices\ADSP-SC5xx_EZ-KIT_Lite-Rel2.0.2\ADSP-SC5xx_EZ-KIT\Examples\Power_On_Self_Test\Custom_Init_Preload_Code\prebuilt_exe\Post_Init_SC589_Core0" -core0="D:/C6/SC58x_boot/C6_core0_cotexA5/Debug/sc58x_boot_core0" -NoFinalTag="sc58x_boot_core0" -core1="D:/C6/SC58x_boot/C6_core1_DSP/Debug/sc58x_boot_core1.dxe" -NoFinalTag="sc58x_boot_core1.dxe" -core2="D:/C6/SC58x_boot/C6_core2_DSP/Debug/sc58x_boot_core2.dxe" -o "sc58x_boot_core0.ldr"
	@echo 'Finished building target: $@'
	@echo ' '

sc58x_boot_core0: $(USER_OBJS) $(SRC_OBJS)
	@echo 'Invoking: CrossCore ARM Bare Metal C Linker'
	arm-none-eabi-gcc -mproc=ADSP-SC589 -msi-revision=any -Wl,--gc-sections -mcomponent="C:\Analog Devices\CrossCore Embedded Studio 2.6.0/ARM/arm-none-eabi/arm-none-eabi/lib/src/cortex-a5/demo/libraries_cortexa5.xml" -madi-threads -mcomponent="C:/Analog Devices/uCOS-III-Rel2.6.0/uCOS-III/libraries.xml" -mdebug-libs -o  "sc58x_boot_core0" @input-file.txt -lm
	@echo 'Finished building: $@'
	@echo ' '

# Other Targets
clean:
	-$(RM) $(LOADER_FILE_OUTPUTS)$(EXECUTABLES)$(OBJS)$(C_DEPS) sc58x_boot_core0.ldr
	-@echo ' '

.PHONY: all clean dependents
.SECONDARY:

-include ../makefile.targets
